<template>
    <p>这是一个局部组件</p>
    <button @click="addMus">点击-1</button>
    <p>{{ count }}</p>
</template>


<script>
export default {
    name:"LocalComDemo",
    data(){
        return {
            count: 0
        }
    },
    methods:{
        addMus(){
            this.count--
        }
    }
}
</script>

<style scoped>
p {
    color: blue;
}
</style>